EXE = OPH_ROBOT
CC = arm-linux-gnueabihf-gcc
CXX = arm-linux-gnueabihf-g++
EXE1 = VideoCapture_line
EXE2 = back_wheel
EXE3 = front_wheel
EXE4 = robot_arm
EXE5 = i2c_driver
EXE6 = ICM20948_driver
EXE7 = car_IMU_upload
EXE8 = car_odom_upload
EXE9 = car_picture_upload

CFLAGS = -O3 -Wall -Wno-error -w
CFLAGS += -lopencv_core -lopencv_highgui -lopencv_videoio -lopencv_imgproc -lopencv_imgcodecs -lopencv_video
CFLAGS += -lOpenCL -locl_util
CFLAGS += -lpthread -lasound -lrt -ljson-c

include ../make.common

SOURCES = main.cpp ../common/object_classes.cpp ../common/utils.cpp ../common/video_utils.cpp\
	./src/$(EXE1).cpp ./src/$(EXE2).cpp ./src/$(EXE3).cpp \
	./src/$(EXE4).cpp ./src/$(EXE5).cpp ./src/$(EXE6).cpp \
	./src/$(EXE7).cpp ./src/$(EXE8).cpp ./src/$(EXE9).cpp \

$(EXE): $(TIDL_API_LIB) $(HEADERS) $(SOURCES)
	$(CXX) $(CXXFLAGS) $(SOURCES) $(TIDL_API_LIB) $(LDFLAGS) $(CFLAGS) -o $@
	

